#chu vi va dien tich
import math
import cStringIO
# square
"""Method find Area of a Square"""
def sqArea(h):
    return "%0.4f" %(h*h)
"""Method find perimeter of a Square"""
def sqPeri(h):
    return "%0.4f" %(h*2)
# rectangle
"""Method find Area of a Rectangle"""
def recArea(h, w):
    return "%0.4f" %(h*w)
"""Method find perimeter of a Rectangle"""
def recPeri(h,w):
    return "%0.4f" %((h+w)/2.0)
# Circle
"""Method find Area of a Circle"""
def cirArea(r):
    return "%0.4f" %(math.pi * r * r)
"""Method find perimeter of a Rectangle"""
def cirPeri(r):
    return "%0.4f" %(math.pi * 2 * r)
